package com.fenghongzhang.login;

import com.fenghongzhang.login.entity.LoginInfo;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface Api {

    @POST("/login")
    @FormUrlEncoded
    Observable<LoginInfo> login(@Field("name") String name,@Field("password") String password);
}
